import React from 'react';
import { componentClass, ComponentProps } from '../../../../common/Component';
import { getAttribute, setAttribute } from '../../../../common/Widget';
import './index.less';

// 默认frameCount为0
setAttribute("frameCount", 0);

export interface Props extends React.PropsWithChildren<ComponentProps>{
   
}

export default function PowerPoint(props: Props){
    setAttribute("frameCount", getAttribute('frameCount') + 1);
    return <div className={componentClass(props, 'apps-powerpoint-frame  markdown-body')}>
            {props.children}
    </div>
}